package prepro;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CollectVerbs {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new FileReader(new File(
				"/local/joofeit/dewacCleanInts")));
		BufferedWriter bw = new BufferedWriter(new FileWriter(new File(
				"/local/joofeit/Verbs")));
		String line = "";
		Pattern p = Pattern.compile("^([a-z]|[A-Z]).*");
		Pattern p2 = Pattern.compile("([a-z]|[A-Z]|ä|ü|ö|Ä|Ü|Ö|ß)+");
		// ("(.*?[0-9]+.*)") ;
		// |(.*?\\W+.*)");

		while ((line = br.readLine()) != null) {
			String[] lineArray = line.split(" ");
			if (lineArray.length == 4) {
				// Matcher m = p.matcher(lineArray[2]);
				// Matcher m2 = p2.matcher(lineArray[2]);
				if (lineArray[1].startsWith("V")) {
					bw.write(lineArray[2] + " " + lineArray[3] + "\n");
					// System.out.println(lineArray[2]+ " "+lineArray[1]);
				}

			}
		}
		bw.close();
		br.close();
	}

}
